using System.Collections.Generic;
using System.Xml.Serialization;

namespace Commons.Models.Settings.Dtos.TradeValues
{
	public class CostDto : MultipleTradeValueDto
	{
		[XmlElement(ElementName = "stats", Namespace = "http://www.ibeltran.com/schema/game/tradevalue")]
		public List<UserStatTradeValueDto> Stats;

		override public List<TradeValueDto> GetTradeValues()
		{
			if (tradeValues != null)
			{
				return tradeValues;
			}

			tradeValues = new List<TradeValueDto>();

			if (Stats != null)
			{
				foreach (UserStatTradeValueDto userStatTradeValueDto in Stats) 
				{
					tradeValues.Add(userStatTradeValueDto);
				}
			}
			
			return tradeValues;	
		}
		
		protected List<TradeValueDto> tradeValues;
	}
}
